package com.es.hotel.constants;

public class HotelIndexConstants {
    public static final String MAPPING_TEMPLATE = "{\n" +
            "  \"settings\": {\n" +
            "    \"analysis\": {\n" +
            "      \"filter\": {\n" +
            "        \"edge_ngram_filter\": {\n" +
            "          \"type\": \"edge_ngram\",\n" +
            "          \"min_gram\": 1,\n" +
            "          \"max_gram\": 20\n" +
            "        }\n" +
            "      },\n" +
            "      \"analyzer\": {\n" +
            "        \"pinyin_analyzer\": {\n" +
            "          \"tokenizer\": \"pinyin\",\n" +
            "          \"filter\": [\n" +
            "            \"lowercase\",\n" +
            "            \"edge_ngram_filter\"\n" +
            "          ]\n" +
            "        }\n" +
            "      }\n" +
            "    },\n" +
            "    \"mappings\": {\n" +
            "      \"properties\": {\n" +
            "        \"id\": {\n" +
            "          \"type\": \"keyword\"\n" +
            "        },\n" +
            "        \"name\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"copy_to\": \"all\"\n" +
            "        },\n" +
            "        \"suggestion\": {\n" +
            "          \"type\": \"completion\"\n" +
            "        },\n" +
            "        \"address\": {\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\": false\n" +
            "        },\n" +
            "        \"price\": {\n" +
            "          \"type\": \"integer\"\n" +
            "        },\n" +
            "        \"score\": {\n" +
            "          \"type\": \"integer\"\n" +
            "        },\n" +
            "        \"brand\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"pinyin_analyzer\",\n" +
            "          \"search_analyzer\": \"ik_max_word\",\n" +
            "          \"copy_to\": \"all\"\n" +
            "        },\n" +
            "        \"city\": {\n" +
            "          \"type\": \"keyword\"\n" +
            "        },\n" +
            "        \"starName\": {\n" +
            "          \"type\": \"keyword\"\n" +
            "        },\n" +
            "        \"business\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"pinyin_analyzer\",\n" +
            "          \"search_analyzer\": \"ik_max_word\",\n" +
            "          \"copy_to\": \"all\"\n" +
            "        },\n" +
            "        \"pic\": {\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\": false\n" +
            "        },\n" +
            "        \"location\": {\n" +
            "          \"type\": \"geo_point\"\n" +
            "        },\n" +
            "        \"all\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\"\n" +
            "        }\n" +
            "      }\n" +
            "    }\n" +
            "  }\n" +
            "}";
}
